package com.chenshu.springboot_demo.config.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2024-04-06
 * Time：20:41
 */

@Data
@Component
@ConfigurationProperties(prefix = "user")
public class User {
    private int id;
    private String name;
    private int age;
}
